

function checkLogin(a,b){

	if(document.getElementById(a).value==""){
		document.getElementById("error").innerHTML="Please enter valid username";
		return false;
	}else if(document.getElementById(b).value==""){
		document.getElementById("error").innerHTML="Please enter valid password";
		return false;
	}
	return true;
}